﻿Public Partial Class DateRangePicker
    Inherits System.Web.UI.UserControl

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

    End Sub

    Public Property FromDate() As Date
        Get
            Return txtFrom.SelectedDate
        End Get
        Set(ByVal value As Date)
            txtFrom.SelectedDate = value
        End Set
    End Property

    Public Property ToDate() As Date
        Get
            Return txtTo.SelectedDate
        End Get
        Set(ByVal value As Date)
            txtTo.SelectedDate = value
        End Set
    End Property

    Public Property Width() As System.Web.UI.WebControls.Unit
        Get
            Return txtFrom.Width
        End Get
        Set(ByVal value As System.Web.UI.WebControls.Unit)
            txtFrom.Width = value
            txtTo.Width = value
        End Set
    End Property

End Class